<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:a4j="http://richfaces.org/a4j">

      <h:form id="topForm" prependId="false">
		<div id="top" align="right"> 
		    <c:choose>
				<c:when test="${topForm.login}">
				    <label><h:outputText value="#{msg.wellcome}"  /><h:outputText value="#{topForm.username}"/></label>
				    <h:commandLink value="#{msg.logoutLnk}" action="#{topForm.logoutAction}"/>
				    <h:commandLink value="#{msg.userListLnk}" action="#{topForm.goUserList}"/>
				    <h:commandLink value="#{msg.userEditLnk}" action="#{userRegisteForm.edit}"/>
				</c:when>
				<c:otherwise >
	                <h:commandLink value="#{msg.loginLnk}" action="#{topForm.goLogin}"/>
	                <h:commandLink value="#{msg.registeLnk}" action="#{topForm.goRegiste}"/>
	            </c:otherwise> 
			</c:choose>
            
		</div>
      </h:form>

</html>